package com.hptpd.questionnairesurvey.repository;

import com.hptpd.questionnairesurvey.domain.UserSurvey;
import com.hptpd.questionnairesurvey.domain.UserSurveyResult;
import com.hptpd.questionnairesurvey.domain.question.BaseQuestion;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * \* Created with IntelliJ IDEA.
 * \* Date: 2019/12/19
 * \*
 * \* Description:
 * \
 *
 * @author walter_long
 */
@Repository("userSurveyResultRep")
public interface UserSurveyResultRep extends JpaRepository<UserSurveyResult, String> {
    UserSurveyResult getByQuestionAndUserSurvey(BaseQuestion question, UserSurvey userSurvey);

    List<UserSurveyResult> findByQuestionAndUserSurvey(BaseQuestion question, UserSurvey userSurvey);
}
